package homework2;
//子类具有计算工资的特定行为
public class Manager extends Employee{

    private double bonus;//奖 金

    public Manager() {
    }

    public Manager(String name, int age, double salary, double bonus) {
        super(name, age, salary);
        this.bonus = bonus;
    }

    @Override
    public double calculateSalary() {
        return super.calculateSalary() + bonus;
    }
}
